package demo19;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/3/9 18:27
 */
public class FinallyDemo {
    public static void main(String[] args) {
        System.out.println("程序开始了...");
        try {
            String line = "";
            System.out.println(line.length());
            return ;
        }catch (Exception e){
            System.out.println("出错了被捉到了");
        }finally {
            System.out.println("进入到了finally");
        }
    }
}
